package com.kx.push.quartz.start;

import com.kx.push.quartz.scheduler.IdemDataScheduler;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 它会随着Springboot的启动而运行它的run方法
 * args就是Springboot启动的参数
 * @Author Sun
 * @Date 2021/7/30 19:15
 */
@Component
public class StartIdemJob implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        IdemDataScheduler idemDataScheduler = new IdemDataScheduler();
        idemDataScheduler.schedulerJob();
    }
}
